package cn.iocoder.yudao.module.member.controller.admin.confrebate.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "管理后台 - 返佣政策配置新增/修改 Request VO")
@Data
public class MemberConfRebateSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6193")
    private Long id;

    @Schema(description = "关联物料策略ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24374")
    @NotNull(message = "关联物料策略ID不能为空")
    private Long materialPolicyId;

    @Schema(description = "返佣对象：代理公司/推荐人/副推荐人", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "返佣对象：代理公司/推荐人/副推荐人不能为空")
    private Integer rebateType;

    @Schema(description = "返佣节点：结价时返佣/结料时返佣", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "返佣节点：结价时返佣/结料时返佣不能为空")
    private Integer actionType;

    @Schema(description = "计算基数（每X克）")
    private BigDecimal perQuantity;

    @Schema(description = "返佣积分数（分/千克）")
    private BigDecimal rebatePoints;

}